package com.xinzhidi.web.unitconversion.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * 单位换算对象 unit_conversion
 *
 * @author cx
 * @date 2023-09-03
 */
@ApiModel(value = "单位换算对象")
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("unit_conversion")
public class UnitConversion {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "父id")
    private Long parentId;

    @ApiModelProperty(value = "类型 1：长度  2：热量或冷量  3：时间  4：体积  5：焦耳  6：流速")
    private Integer type;

    @ApiModelProperty(value = "是否主单位（0：是  1：不是）")
    private Integer primaryUnit;

    @ApiModelProperty(value = "单位中文名称")
    private String chineseName;

    @ApiModelProperty(value = "单位英文名称")
    private String englishName;

    @ApiModelProperty(value = "换算率")
    private String rate;

    @ApiModelProperty(value = "编码")
    private String code;

    @ApiModelProperty(value = "删除标志（0代表存在 1代表删除）")
    private String delFlag;

}
